package com.kjcxlab.avcviewer.video;

import android.view.Surface;

import com.kjcxlab.avcviewer.util.Constants;

/**
 * Created by Xianlee on 2016/1/18.
 */
public class VideoStreamInfo {
    private boolean useDefaultConfig = true;
    private final String mime = "video/avc";
    private Surface surface = null;
    private int videoWidth = 640;
    private int videoHeight = 480;
    private int localPort = 6052;
    private byte[] spsArray= Constants.DEF_SPS;
    private byte[] ppsArray = Constants.DEF_PPS;

    public Surface getSurface() {
        return surface;
    }

    public void setSurface(Surface surface) {
        this.surface = surface;
    }

    public String getMime() {
        return mime;
    }

    public int getVideoWidth() {
        return videoWidth;
    }

    public void setVideoWidth(int videoWidth) {
        this.videoWidth = videoWidth;
    }

    public int getVideoHeight() {
        return videoHeight;
    }

    public void setVideoHeight(int videoHeight) {
        this.videoHeight = videoHeight;
    }

    public int getLocalPort() {
        return localPort;
    }

    public void setLocalPort(int localPort) {
        this.localPort = localPort;
    }


    public byte[] getSpsArray()
    {
        return spsArray;
    }
    public void setSpsArray(byte[] sps)
    {
        this.spsArray = sps;
    }

    public byte[] getPpsArray()
    {
        return ppsArray;
    }

    public void setPpsArray(byte[] pps)
    {
        this.ppsArray = pps;
    }

    public void useDefaultConfig(boolean isDefault)
    {
        this.useDefaultConfig = isDefault;
    }

    public boolean useDefaultConfig()
    {
        return useDefaultConfig;
    }
}
